// /recipel/infobyid
import request from "../../utils/request.ts";
import { message } from "antd";
import type { AxiosResponse } from "axios";

//获取药品耗材大数据失败
export const selectMedicalEquipmentStatisticsList = async (): Promise<any> => {
  try {
    const res: AxiosResponse<any, any> = await request.get(
      "/infomationcenter/drugs"
    );
    if (res.data.code === 1) {
      return res.data;
    }
    message.error(res.data.msg);
  } catch (err) {
    message.error("获取药品耗材大数据失败");
    throw err;
  }
};
